package com.rd.student.wulian.wanggaobo;

import java.util.LinkedList;

public class LinkedListTest {


    public static void main(String[] args) {
        LinkedList list = new LinkedList();
        //添加学生信息到list中
        //添加你所在的小组成员
        //姓名  专业  班级
        //输出
        Student wgb = new Student("wgb", "wulian", "21-3");
        Student wb = new Student("wb", "dashuju", "21");
        Student zrx = new Student("zrx", "dashuju", "21");
        Student swz = new Student("swz", "dashuju", "21");
        Student zcx = new Student("zcx", "dashuju", "21");
        list.add(wgb);
        list.add(wb);
        list.add(zrx);
        list.add(swz);
        list.add(zcx);
        System.out.println(list);
    }

}

class Student {
    String name;

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", major='" + major + '\'' +
                ", classroom='" + classroom + '\'' +
                '}';
    }

    String major;
    String classroom;

    public Student(String name, String major, String classroom) {
        this.name = name;
        this.major = major;
        this.classroom = classroom;
    }
}
